package org.jiuling.tencent.sms.config;

/**
 * 腾讯短信配置
 * @author 紫灵
 * @date 2021年12月03日 23时27分18秒
 */
public class TencentSMSConfig {

    /** 腾讯配置 */
    private TencentConfig tencentConfig;
    /** 应用id */
    private String sdkAppId;
    /** 签名 */
    private String signName;

    public String getSdkAppId() {
        return sdkAppId;
    }

    public String getSignName() {
        return signName;
    }

    public TencentConfig getTencentConfig() {
        return tencentConfig;
    }

    public static class Builder{
        private final TencentSMSConfig tencentSMSConfig;

        public Builder() {
            tencentSMSConfig = new TencentSMSConfig();
        }
        public Builder addSdkAppId(String sdkAppId){
            tencentSMSConfig.sdkAppId = sdkAppId;
            return this;
        }
        public Builder addSignName(String signName){
            tencentSMSConfig.signName = signName;
            return this;
        }
        public Builder addTencentConfig(TencentConfig tencentConfig){
            tencentSMSConfig.tencentConfig = tencentConfig;
            return this;
        }

        public TencentSMSConfig builder(){
            return tencentSMSConfig;
        }
    }
}
